<style type="text/css">
    .toptips{
        font-size: 12px;
        font-weight: bold;
    }
    .vis-personimg-box{
        width: 120px;
        max-height: 120px;
        border-radius: 6px;
        overflow: hidden;
        margin:0 auto;
    }
    .vis_personimg{
        
        width: 120px;
    }

</style>
<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
   
 
  <div class="layui-card-body">
    <div class="layui-row">
    <div class="layui-col-md3 text-center">
<!--               <div class="layui-col-xs6 text-center">
                    <img data-tips-image src="http://pc.zsicp.com/static/theme/img/headimg.png">
                </div> -->
        <div class="layui-col-md12 toptips">

           <i class="layui-icon">&#xe66f;</i>来访客人信息

        </div>
        <div class="layui-col-md12 margin-top-10">
                <div class="vis-personimg-box">
                    <img data-tips-image class="vis_personimg" src="http://devs.zsicp.com/public/upload/person/{$list.vister_personimg}">
                </div>
        </div>
    </div>
    <div class="layui-col-md9">

        <div class="layui-row layui-col-space10">
          <div class="layui-col-md6">
                        <label class="layui-form-label label-required">访客姓名</label>
                    <div class="layui-input-block">
                        <input readonly name="vister_name" value='{$list.vister_name|default=""}' class="layui-input">
                    </div>
          </div>
          <div class="layui-col-md6">
              <label class="layui-form-label label-required">受访者</label>
                    <div class="layui-input-block">
                        <input readonly name="app_user_name" value='{$list.app_user_name|default=""}' class="layui-input">
                    </div>
          </div>

        </div>
     

        <div class="layui-row layui-col-space10">
          <div class="layui-col-md6">
                    <label class="layui-form-label label-required">访客联系</label>
                    <div class="layui-input-block">
                        <input readonly name="vister_mobile" value='{$list.vister_mobile|default=""}' class="layui-input">
                    </div>
          </div>
          <div class="layui-col-md6">

                            <label class="layui-form-label label-required">接见员工联系</label>
                    <div class="layui-input-block">
                        <input readonly name="app_mobile" value='{$list.app_mobile|default=""}' class="layui-input">
                    </div>
<!--                   <label class="layui-form-label">预约日期</label>
                    <div class="layui-input-block" >
                        <input readonly type="text"  name="entry_date" value="{$list.app_visittime|date='Y年m月d日 H:i:s'|default=''}" class="layui-input">
                    </div> -->
          </div>

        </div>

        <div class="layui-row layui-col-space10">
          <div class="layui-col-md6">
             <label class="layui-form-label label-required">到访公司</label>
                    <div class="layui-input-block">
                        <input readonly name="app_company_name" value='{$list.app_company_name|default=""}' class="layui-input">
                    </div>
          </div>
          <div class="layui-col-md6">
              <label class="layui-form-label label-required">拜访部门</label>
                    <div class="layui-input-block">
                        <input readonly name="address" value='{$list.address|default=""}' class="layui-input">
                    </div>
          </div>
        
        </div>

        <div class="layui-row layui-col-space10">
          <div class="layui-col-md6">
                    <label class="layui-form-label label-required">身份证</label>
                    <div class="layui-input-block">
                        <!-- <input readonly name="vister_identitycard" value='{$list.vister_identitycard|default="暂无"}' class="layui-input"> -->
                        <input readonly name="vister_identitycard" value='{php} {echo substr_replace($list['vister_identitycard'],"*****",8,4);}{/php}' class="layui-input">
                        
                    </div>
          </div>
          <div class="layui-col-md6">
                <label class="layui-form-label">预约日期</label>
                    <div class="layui-input-block" >
                        <input readonly type="text"  name="entry_date" value="{$list.app_visittime|date='Y年m月d日 H:i:s'|default=''}" class="layui-input">
          </div>
        
        </div>

        <div class="layui-row layui-col-space10">
          <div class="layui-col-md6">
                           <label class="layui-form-label">邀请缘由</label>
                    <div class="layui-input-inline margin-right-0" style="width:164px">
                      <p>{$list.reson|default="-"}</p>
                      <span>备注:</span>
                      <p>{$list.app_remark|default="-"}</p>
                    </div>
          </div>
        </div>


        <div class="layui-row layui-col-space10">
          <div class="layui-col-md6">
            <label class="layui-form-label label-required">到访时间</label>
                   <!--  <div class="layui-input-inline margin-right-0" > -->
                        <p>{$list.arrivetime|date='Y年m月d日 H:i:s'|default=''}</p>
                      
                    <!-- </div> -->
          </div>
        <div class="layui-col-md6">

              <label class="layui-form-label label-required">离开时间</label>
          <!--   <div class="layui-input-inline margin-right-0" > -->
              {if $list.leavetime}
                <p>{$list.leavetime|date='Y年m月d日 H:i:s'|default='-'}</p>
              {else}
                <p>-</p>
              {/if}

            <!-- </div> -->
          </div>
        </div>

        <div class="layui-form-item nowrap">
            <label class="layui-form-label">放行门卫姓名</label>
            <div class="layui-input-inline margin-right-0" style="width:164px">
                <input readonly type="text" name="entry_date" value='{$list.security_name|default="-"}' class="layui-input">
            </div>
        </div>
        <div class="layui-form-item nowrap">
            <label class="layui-form-label">门卫联系</label>
            <div class="layui-input-inline margin-right-0" style="width:164px">
                <input readonly type="text"  name="entry_date" value='{$list.security_mobile|default="-"}' class="layui-input">
            </div>
        </div>
        <div class="layui-form-item nowrap">
            <label class="layui-form-label">放行信息</label>
            <div class="layui-input-inline margin-right-0" style="width:164px">

                {if $list.passtime}<p>放行时间:{$list.passtime|date='Y年m月d日 H:i:s'|default="-"}</p>{/if}
                {if $list.refusetime}
                    <p>放行时间:{$list.refusetime|date='Y年m月d日 H:i:s'|default="-"}</p>
                    <p>拒绝原因:{$list.security_refuseremark|default="-"}</p>
                {/if}

            </div>
        </div>
</div>
</div>
</div>
<!-- END -->
        <div classs="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
       <!--  <button class="layui-btn" type='submit'>保存数据</button> -->
        <button class="layui-btn layui-btn-danger" type='button'  data-close>关 闭</button>
    </div>

    <script>window.form.render();</script>

</form>
